package com.didi.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.didi.gulimall.common.to.OrderSuccessVo;
import com.didi.gulimall.common.utils.PageUtils;
import com.didi.gulimall.common.utils.R;
import com.didi.gulimall.member.entity.MemberEntity;
import com.didi.gulimall.member.vo.MemberLoginVo;
import com.didi.gulimall.member.vo.MemberOrderPointsVo;
import com.didi.gulimall.member.vo.MemberRegistVo;
import com.didi.gulimall.member.vo.SocialUser;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * 会员
 *
 * @author didi
 * @email 1062664904@qq.com
 * @date 2021-01-14 16:07:50
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R registered(MemberRegistVo memberRegistVo);

    R login(MemberLoginVo memberLoginVo);

    R oauthweibologin(SocialUser socialUser) throws Exception;

    void addMemberGI(Long memberId, Integer growth, Integer integration);

    R subjectPoint(List<MemberOrderPointsVo> memberOrderPointsVo, HttpSession httpSession);

    void addMemberGI(OrderSuccessVo orderSuccessVo);

}

